<?php

//$shell = system("cd /data/wwwroot/ && chmod -R 755 webhook && chown -R www:www webhook");

$a = shell_exec("sudo php -v");
var_dump($a);

$git = "cd /data/wwwroot/webhook/ && sudo git pull https://gitee.com/XiaoXue6/webhook.git";
$shell = system("{$git}");
//$shell = exec("{$git}");
//$shell = shell_exec("{$git}");

echo "ok".PHP_EOL;
